In JavaScript the command for writing some text on a page is document.write:
document.write("Hello World!")